export { }
let http = require('http');
// 代理服务器
const httpProxy = require('http-proxy');
const proxy = httpProxy.createProxyServer();
let server = http.createServer(function (req, res) {
    proxy.web(req, res, {
        target: 'http://127.0.0.1:9999'
    });
});
// 当用户访问 8888 的时候 会转发给 http://127.0.0.1:9999  8888相当于nginx 代理服务器
server.listen(8888, () => console.log('8888'));
//反向代理 8888 ===  nginx   9999 === 真正的应用服务器